package entity;

import java.util.HashSet;
import java.util.Set;

import org.codehaus.jackson.annotate.JsonIgnoreProperties;

/**
 * Role entity. @author MyEclipse Persistence Tools
 */
@JsonIgnoreProperties({"users","authorities","menus"})
public class Role implements java.io.Serializable {

	// Fields

	private Integer id;
	private String roleName;
	private Set users = new HashSet(0);
	private Set authorities = new HashSet(0);
	private Set menus = new HashSet(0);

	// Constructors

	/** default constructor */
	public Role() {
	}
	

	public Role(Integer id) {
		this.id = id;
	}


	/** minimal constructor */
	public Role(String roleName) {
		this.roleName = roleName;
	}


	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getRoleName() {
		return this.roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public Set getUsers() {
		return this.users;
	}

	public void setUsers(Set users) {
		this.users = users;
	}


	public Set getAuthorities() {
		return authorities;
	}

	public void setAuthorities(Set authorities) {
		this.authorities = authorities;
	}

	public Set getMenus() {
		return menus;
	}

	public void setMenus(Set menus) {
		this.menus = menus;
	}
	
	


}